package plus.lgx.textsearcher.entity;

import cn.hutool.core.util.StrUtil;

/**
 * Class name: StringWrapper
 *
 * Create time: 1/2/23 5:45 PM
 *
 * @author lgx
 * @version 1.0
 */
public class StringWrapper {

    public final String s;

    public final int index;

    public final int size;

    public final int length;

    public StringWrapper(String s, int index) {
        this.s = s;
        this.index = index;
        this.length = s.length();
        this.size = 0;
    }

    public StringWrapper(String s, int index, int size) {
        this.s = s;
        this.index = index;
        this.length = s.length();
        this.size = size;
    }

}
